package com.supplychainapi.dao.prod;

import com.supplychainapi.model.ScmTbunit;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ScmTbunitMapper extends Mapper<ScmTbunit> {

    String getCode(String shopGuid);

    Integer nameIsExit(@Param("name") String name, @Param("shopGuid") String shopGuid);

    int getQuotesByTreeBuild(@Param("fsShopGUID") String fsShopGUID,@Param("unidCode") String unidCode);

    List<ScmTbunit> search(@Param("fsShopGUID") String fsShopGUID, @Param("name") String name);
}